// Include the new material
#include "spiderApp.h"

// Include MOOSE
#include "MooseInit.h"
#include "Moose.h"
#include "MooseApp.h"
#include "AppFactory.h"

// Create a performance log
PerfLog Moose::perf_log("spider");

// Begin the main program.
int
main(int argc, char * argv[])
{
  // Initialize MPI, solvers and MOOSE
  MooseInit init(argc, argv);

  // Register this application's MooseApp and any it depends on
  spiderApp::registerApps();

  // Create an instance of the application and store it in a smart pointer for easy cleanup
  // The unique_ptr will automatically free memory allocated by the AppFactory.
  std::shared_ptr<MooseApp> app = AppFactory::createAppShared("spiderApp", argc, argv);

  // I am going to use these files to show the values of the
  // elasticity and deformation gradient tensors. This is my
  // way to reset them
  FILE *fp, *fp2;

  fp = fopen("test_neohookean_cijkl.txt", "w");
  fp2 = fopen("test_neohookean_F.txt", "w");

  fclose(fp);
  fclose(fp2);

  // Execute the application
  app->run();

  return 0;
}
